define([
    "ngController"
],function (appAngular) {

    // 模型canvas-组件最外层（外部）
    appAngular.directive("bimviewApiCanvas3d", function () {
        return {
            restrict: "EA",
            replace: true,
            template: `<div class='BIMView-API-canvas3d' id='Canvas'>
					</div>`,
            link: function ($scope, $elem, attrs) {
                $elem.on("click", function () {
                    $scope.modelSliderShrink();

                    setTimeout(function () {
                        $scope.modelBodyName = Model.body ? Model.body.name : "";
                        $scope.$apply();
                    }, 300);
                });
                $elem.on("mouseup", function (e) {
                    if ($scope.btnsSelect.name == "sign") {
                        $scope.btnsSeletCheck();
                    }
                });
            }
        };
    });

    return appAngular;
});